import {defineStore} from 'pinia'
import {chatMessageList} from "@/api/message"

export const messageStore = defineStore({
    id: 'message',
    state: () => {
        return {
            systemMessageList: [],
            systemNewMessage: [],
            messageList: []
        }
    },
    actions: {
        async getSystemMessageList() {
        },
        async getChatMessageList() {
            chatMessageList().then(res => {
                this.messageList = res.data
            })
        }
    }
})